﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SalaryRulesViewInfo.ascx.cs"
    Inherits="SERP.Modules.SalaryRules.SalaryRulesViewInfo" %>
<%@ Register Src="CalculationTypes.ascx" TagName="CalculationTypes" TagPrefix="uc1" %>
<%@ Register Src="../SalaryFields/DropDownListSalaryFields.ascx" TagName="DropDownListSalaryFields"
    TagPrefix="uc2" %>
<div class="fgroup">
    <asp:Label runat="server" ID="lblInfo"></asp:Label>
</div>
<div class="frow">
    <asp:Label ID="labelRuleName" runat="server" Text="RuleName" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:Literal runat="server" ID="txtRuleName"></asp:Literal>
</div>
<div class="frow">
    <asp:Label ID="labelNote" runat="server" Text="Note" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:Literal runat="server" ID="txtNote"></asp:Literal>
</div>
<div class="frow">
    <asp:Label ID="labelStatus" runat="server" Text="Status" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:Literal runat="server" ID="txtStatus"></asp:Literal>
</div>
<div class="frow">
    <asp:Label ID="labelFromDay" runat="server" Text="FromDay" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:Literal runat="server" ID="txtFromDay"></asp:Literal>
</div>
<div class="frow">
    <asp:Label ID="labelToDay" runat="server" Text="ToDay" CssClass="label" EnableViewState="False"></asp:Label>
    <asp:Literal runat="server" ID="txtToDay"></asp:Literal>
</div>
<div class="fgroup">
    <asp:Label runat="server" ID="lblItem"></asp:Label>
</div>
<table class="grid">
    <tr>
        <td class="tblhleft" style="width: 34px">
            <%=SERP.Constants.APP_INDEX%>
        </td>
        <td class="tblh">
            <%=SERP.StringMappings.SalaryRuleItemsStringMapping.RuleContent%>
        </td>
        <td class="tblh" style="width: 160px">
            <%=SERP.StringMappings.SalaryRuleItemsStringMapping.CalculationType%>
        </td>
        <td class="tblh" style="width: 80px">
            <%=SERP.StringMappings.SalaryRuleItemsStringMapping.SalaryFieldId%>
        </td>
        <td class="tblh" style="width: 80px">
            <%=SERP.StringMappings.SalaryRuleItemsStringMapping.CalculationIndex%>
        </td>
    </tr>
    <asp:Repeater runat="server" ID="gridData">
        <ItemTemplate>
            <tr>
                <td class="tblcleft">
                    <%#Container.ItemIndex+1%>
                </td>
                <td class="tblc">
                    <%#Eval("RuleContent")%>
                </td>
                <td class="tblc">
                    <%#GetCalculationType(Convert.ToInt32(Eval("CalculationType")))%>
                </td>
                <td class="tblc">
                    <%#GetSalaryField((int) Eval("SalaryFieldId") )%>
                </td>
                <td class="tblc">
                    <%#Eval("CalculationIndex")%>
                </td>
            </tr>
        </ItemTemplate>
    </asp:Repeater>
</table>
